const express = require('express');
const router = express.Router()

const { getOrderList, searchOrder } = require('../../controller/apis/OrderController');
// 导入JWT拦截中间件
const checkTokenMiddleware = require('../../middleware/checkTokenMiddleware')
// 导入分页中间件
const paginationMiddleware = require('../../middleware/paginationMiddleware');

// 获取订单列表信息
router.get('/order/list', paginationMiddleware, checkTokenMiddleware, getOrderList)

// 订单列表搜索功能
router.get('/order/search', checkTokenMiddleware, searchOrder)

module.exports = router